<?php

namespace App\Models\User;

use App\Models\BaseModel;

/**
 * App\Models\User\Recharge
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property string $out_trade_no 订单号
 * @property string $subject 标题
 * @property string $recharge_amount 充值金额
 * @property string $total_amount 实收金额
 * @property int $pay_status 支付状态 未支付:0 已支付:1
 * @property int $refund_status 退款状态 未退款:0 退款:1
 * @property int $deleted 管理员删除 0=未删除,1=删除
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @property-read int|null $notifications_count
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge query()
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereDeleted($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereOutTradeNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge wherePayStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereRechargeAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereRefundStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereSubject($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereTotalAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Recharge whereUserId($value)
 * @mixin \Eloquent
 */
class Recharge extends BaseModel {

	protected $table = 'recharge';
	protected $primaryKey = 'id';
	protected $fillable = [
		'user_id',
		'out_trade_no',
		'subject',
		'recharge_amount',
		'total_amount',
		'pay_status',
		'deleted',
	];

}
